package model;

public class Color {
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */

	int id;
	String name;
	String path;
	String code;
	public Color(int id, String name, String path, String code) {
		super();
		this.id = id;
		this.name = name;
		this.path = path;
		this.code = code;
	}
	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @return the path
	 */
	public String getPath() {
		return path;
	}
	/**
	 * @return the code
	 */
	public String getCode() {
		return code;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		return result;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Color other = (Color) obj;
		if (id != other.id)
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Color [id=" + id + ", name=" + name + ", path=" + path
				+ ", code=" + code + "]";
	}
	
}
